﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace NinjaToolbox.SubComponentModule
{
    [TargetSubComponent(typeof(SubComponentModuleExample))]
    public class SubComponentModuleExample_Model : SubComponentModelBase
    {
        public int foo;


        protected override void EditorSerialize(UnionSerializeWriter serializeWriter)
        {
            base.EditorSerialize(serializeWriter);

            serializeWriter.Write(foo);
        }

        protected override void EditorDeserialize(UnionSerializeReader serializeReader)
        {
            base.EditorDeserialize(serializeReader);

            foo = serializeReader.ReadInt();
        }
    }
}
